package tyk.auto1;

public class Student {
    private Integer number;
    private String name;

    public Student() {
        System.out.println("1.执行无参构造器创建Student对象");
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        System.out.println("2.执行setter方法设置对象属性");
        this.number = number;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void init()
    {
        System.out.println("4.执行初始化方法");
    }

    public void destroy()
    {
        System.out.println("7.执行销毁方法");
    }
}
